Release 10.1A: OpenEdge Development:
Messaging and ESB
Receiving messages from a PTP queue
The following general steps outline how a 4GL application receives a message from a queue:
- The application obtains a handle to the PTP Session object.
- The application creates a Message Consumer object by calling the createMessageConsumer procedure.
- The application calls the receiveFromQueue procedure in the Session object with the name of a queue and the Message Consumer handle as input parameters.
- The application executes a
WAIT–FORstatement (or a waitForMessages procedure call) and processes incoming messages and other 4GL events.- The application deletes the messages after it finishes using them.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |